package org.liuyuantao.springdata.dao;

import java.io.Serializable;

import javax.persistence.EntityManager;

import org.springframework.data.jpa.repository.support.JpaEntityInformation;
import org.springframework.data.jpa.repository.support.SimpleJpaRepository;
import org.springframework.data.repository.NoRepositoryBean;

@NoRepositoryBean
public class CommonMethodExampleImpl<T, ID extends Serializable>
        extends SimpleJpaRepository<T, ID> implements CommonMethodExample<T, ID> {

    private final EntityManager entityManager;

    public CommonMethodExampleImpl(JpaEntityInformation<T, ?> entityInformation, EntityManager entityManager) {
        super(entityInformation, entityManager);
        this.entityManager = entityManager;
    }

    @Override
    public void method() {
        System.out.println("...METHOD TEST...");
    }

}
